import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';
// import 'package:flutter_application_2/pages/home/index.dart';
// import 'package:flutter_application_2/pages/login.dart';
import 'package:flutter_application_2/routes.dart';

class Application extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    FluroRouter router = FluroRouter();
    Routes.configureRoutes(router);
    //使用materialApp
    return MaterialApp(
      // home: LoginPage(),
      debugShowCheckedModeBanner: false,
      theme: ThemeData(primaryColor: Colors.green), //配置主题颜色
      onGenerateRoute: router.generator,
    );
  }
}
